package com.zhss.concurrency.subject;

import java.util.Map;

/**
 * @ClassName UpdateSmsInfo
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/8/31 15:04
 * @Version 1.0
 */
public class SmsInfoService {

	public void updateSmsInfo() {
		Map<Integer, SmsInfo> smsInfoMap = SmsRouter.getInstance().getSmsInfoMap();
//		SmsInfo smsInfo = smsInfoMap.get(3);
//		smsInfo.setMaxByte(103L);
//		smsInfo.setUrl("www.ss.mm");
		SmsInfo info = new SmsInfo("www.ss.mm", 103L);
		smsInfoMap.put(3, info);
	}

}
